const HisToday = require('./ORM');

async function queryList(req, res) {
  const project = await HisToday.findAll({
    where: { date: req.query.date },
    attributes: ['date', 'title', 'year', 'content_id'] //返回特定字段
  });
    res.API(project); 
}

async function createDB(data) {
  return await HisToday.bulkCreate(data);
}

module.exports = queryList;
